import 'package:flutter/material.dart';
import 'package:kasax_demos2/day01_firststarup/my_text_demo.dart';

class CustomThemeDemo extends StatelessWidget {
  const CustomThemeDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primaryColor: Colors.yellow
      ),
      home: Scaffold(
        appBar: AppBar(title: Text("自定义主题"),elevation: 0.0,centerTitle: true,),
        body: SafeArea(
          child: MyTextDemo(),
        ),
      ),
    );
  }
}
